Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding of default button style variables #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thegecko
Copy link

This PR adds explicit variables for the the colours of the default buttons.

This enables a user to override the default button colours, specifically the background colour using:

        :root {
            --button-color: var(--button-primary-color);
            --button-background: var(--accent-color);
            --border-color: var(--accent-color);
            --button-color-hover: var(--button-primary-color);
            --button-background-hover: var(--accent-color-hover);
            --border-color-richer: var(--accent-color-hover);
        }

They all default to the same as before, except for the hover border which is now set to #888888 to match skeleton.

This may be cleaner introducing a new hue for the default button, but I didn't want to break backwards compatibility nor have to deal with a 'transparent' hue colour.

@alex-r-bigelow
Copy link

Bump + context: I'm shopping for CSS frameworks, and this Skeleton fork seems the least dead + most relevant to what I'm looking for... but several totally sensible PRs like this hanging open for a year isn't a good sign.

@thegecko, are you still using Barebones, or have you moved on to something else?

@thegecko
Copy link
Author

Not used if for a year :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants